//---------------------------------------------------------------------------

#ifndef ConvertH
#define ConvertH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Buttons.hpp>
//---------------------------------------------------------------------------
class TConvertForm : public TForm
{
__published:	// IDE-managed Components
    TComboBox *GroupCombo;
    TLabel *GroupLabel;
    TLabel *FromLabel;
    TComboBox *InCombo;
    TLabel *ToLabel;
    TComboBox *OutCombo;
    TLabel *OutNLabel;
    TLabel *OutLabel;
    TBitBtn *CopyBtn;
    TBitBtn *SwapBtn;
    void __fastcall GroupComboChange(TObject *Sender);
    void __fastcall InComboChange(TObject *Sender);
    void __fastcall OutComboChange(TObject *Sender);
    void __fastcall CopyBtnClick(TObject *Sender);
    void __fastcall SwapBtnClick(TObject *Sender);
private:	// User declarations
    void __fastcall CreateParams(TCreateParams &Params);
public:		// User declarations

    double   Val;
    double   InVal;
    int      Group;
    int      In;
    int      Out;

    bool     Ajusting;

    __fastcall TConvertForm(TComponent* Owner);
    void __fastcall Convert(double v);
    void __fastcall Process(void);
};
//---------------------------------------------------------------------------
extern PACKAGE TConvertForm *ConvertForm;
//---------------------------------------------------------------------------
#endif
